package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingProjectMapper {
    Page<NursingProjectVo> selectPageByNameAndStatus(String name, Integer status);

    int insert(NursingProject nursingProject);

    int countByName(String name);

    NursingProjectVo selectById(Long id);

    int update(NursingProject nursingProject);

    int updateStatus(Long id, Integer status);

    int delete(Long id);

    List<NursingProjectVo> selectAll();

    Integer countPlanId(Long id);
}
